package tr.edu.yildiz.ce.dap.appagent.command.deployment.base;

import tr.edu.yildiz.ce.dap.appagent.command.deployment.proxy.InstallCommand;
import tr.edu.yildiz.ce.dap.appagent.command.deployment.proxy.ListCommand;
import tr.edu.yildiz.ce.dap.appagent.model.DapMessage;
import tr.edu.yildiz.ce.dap.appagent.process.DeploymentProcess;

public class CommandFactory implements CommandConstants{

	public static AbstractCommand createCommand(DapMessage msg,DeploymentProcess process){
		if (msg.getCommand().equals(REGISTER)){
			return new ListCommand(process);
		}else if (msg.getCommand().equals(INSTALL)){
			return new InstallCommand(process);
		}
//		else if (msg.getCommand().equals(LIST)){
//			
//		} 
		return  null;
	}
	
}
